rename Python method