Adding the sync python version