Moved and renamed reader_writer.py
Fixed one exception during testing by creating an autospecced mock in unit test.