added some python3 support, manager can now run with python3