Using python's tempFile object to handle uploaded files