Installing functools gives me AttributeError 'module' object has no attribute 'compose'
Python2.7 comes with the functools module included.
You can install functools32 if you want to get the lru-cache decorator, which was introduced with Python3.2.
Edit: I actually checked this. I got the same error when I tried to pip-install functools with Python2.7. Simply do import functools
and proceed as usual.