update python definition