Formatted counterparty/views.py