progress on Python binding