init python code