for python code