Allow passing in of requests session
Refactor iteration and test using \r\n linebreaks