some code for python