Python 3 Support

Hi, I've added python 3 support by changing range to list(range) and floating division to integer division. I plan to work on this project more to practice algorithm implementation.