Add legal_entity to CTA admin to fix bug 1012913

Fix flake8 errors