Convert hooks.varnames() to inspect.signature() on Python 3 (#210)

Convert hooks.varnames() to inspect.signature() on Python 3