python code & examples