Get the number of argument of a fuction.

def _get_fct_number_of_arg(self, fct):
        """Get the number of argument of a fuction."""
        py_version = sys.version_info[0]
        if py_version >= 3:
            return len(inspect.signature(fct).parameters)
        return len(inspect.getargspec(fct)[0])