for abstractmethod in abclass.__abstractmethods__:
    new_dict[abstractmethod] = lambda x, *args, **kw: (x, args, kw)
return type('dummy_concrete_%s' % abclass.__name__, (abclass,), new_dict)
Python - Testing an abstract base class