Protect import fcntl, termios, struct with try/except, if failure fallback on getObsoleteTermSize
PEP8 for functions
Fix end of timing
Fix bug on windows
Merge with public