Writing User Defined Functions In Python