Update 'time' refs to 'self.stats' in record_time_stats method
Refactor model classes out of pyramds.py