Partial Function In Python Definition