Update models.py

md5 is deprecated and use hashlib instead