started some work on Python version