Use 'with' for opening most file and SFTPFIle objects
Remove unnecessary vars for open
Remove `from __future__ import with_statement`