commit partially complete python implementation