Create restreader.py and clean up code