we do this for when we generate the md5 apikey, 
```
        try:
            from hashlib import md5
        except ImportError:
            from md5 import md5
```