PEP8 fixes
Renamed file to filename to avoid shadowing build in function