starting python implementation