Make _get_url a classmethod only after patching __doc__