This will help both with moving to Python3, and with python on Windows. Plus, it's easier to maintain!