Modify parser to accept string of data

Removed os module by allowing the parser to accept a string of data
instead of a string containing a filename. This allows for better
written unit tests.