demo codes in python