Minor bug fix related to counting files already uploaded and some PEP-8 fixes.