first set of python function