Ported to python3 and windows 7