Simple image uploader in Python