Update doge.py

Fixed excess disc reading and file io