Make the compile process work in Python3. Also modify it to work in either VirtualEnv or PyEnv.