Made Py3k compatible

Py3k version made with 2to3. Only two places had to be changed where old syntax was replaced by new --, which is also compatible with Python 2. So, this version runs on Python 2 and 3.