Moved backend code for reading from stdin into utils class and added test
pep8 fixes