Add legal_entity to CTA admin to fix bug 1012913

Add legal_entity to csv export
Fix flake8 errors