FW-186. add function and global variables to python.