Update ca_code.py to PEP 8 standards