Proper detection of a `requests` json method