inserted some function to python