Made the program python3 safe using 2to3