cleanup

* `import os.path` is not required. `import os` is enough.
* Use new-style class.
* Use cut-down division. (`3 / 2` is 1.5 in Python 3)
Remove `is_windows` from Python.