use functools partial instead of self rolled version
Merge pull request #27 from dimagi/partial

use functools partial instead of self rolled version