http://docs.python.org/2/library/functools.html#functools.partial might be more idiomatic here.