Fixed missing import.
Merge pull request #4 from schlamar/import-fix

Fixed missing import
Fixed AttributeError on Windows.
Removed unused variable.
Merge pull request #7 from schlamar/fixes