Finally fixed python 3 (hopefully)