Use inspect.signature instead, currently no py2 support.