Two little changes for more compatibility

- Change hashbang lines to use /usr/bin/env python2 in AutoProcessTV to make in compatible  on systems with Python3 in default

- Change WindowsError in OSError in logger.py to make it linux compatible