begins python implementation. python ftw