I forgot to add that I'm behind a proxy, but I think that is irrelevant. If you are not behind a proxy replace this line:
print post_multipart('proxy-a.mains.nitech.ac.jp', 8080, 'http://imageshack.us/index.php', params, files) with print post_multipart('imageshack.us', 80, '/index.php', params, files) -- http://mail.python.org/mailman/listinfo/python-list