Actually, I think it was exactly because of the (raw_)input switcheroo, as suggested by the (faithfully reproduced) comment.  You might have believed that an `if sys.version_info[0] == 3` was bad and decided to use this hack (compatible with both) instead.