Python 3

* Add Python 3 compatibility
* More Pythonic path usage