Create User Defined Function In Python Definition