python/tests: helper function for checking --help consistency