added a python3 version