Added a Python 3 solution.

Created a Python 3 solution.