Standard input: the content of a robots.txt file, a line ---, a line agent: NAME, then URLs (one per line).
Use urllib.robotparser.RobotFileParser (parse, can_fetch, crawl_delay) to print, for each URL, ALLOW url or DENY url (DENY followed by two spaces), then 2 of 4 URLs allowed for NAME and either crawl delay: 5 s followed by minimum time for the allowed URLs: 5 s ((allowed − 1) × delay, at least 0) or crawl delay: not specified (be polite anyway).