fixing python3 compatability