Fixed shared.py for PEP8 compliance.