added models.py with the added stringIO thing