starting python implementation.