Updated python3 support. I dont think Im doing this right.