PEP8 formatting in base_models.py