Making progress! BytesIO is now used for...

...the lexer's get_tokens method, and in progress of changing the regex
strings to be compiled and used as a regex object instead.