fixed error in functools partial constructor