change  into python