Partial Function In Python Practice