Fix PEP8 and change dir for tmp uploaded files.