get rid of functools
Merge pull request #476 from JensTimmerman/py24

get rid of functools