Added compatibility with Python 3
Merge pull request #1 from xnaveira/add_python3_comp

Added compatibility with Python 3