Implemented request for JSON grouping MPs by their Parties. Also cleaned up a bit