Make .partial work with functools.partial objects
Note performance issues