For python code