This is a Python program of some useful functions