Return the right URL when a file is posted
Fix pep8 errors