fixing pytyhon3 compatibilties