first commit for python re-write