py2/3 compat around inspect