User Defined Functions Type In Python