Update and rename types.py to models.py