'Formats the result to a predefined dict so we can hange it the to
the desired output by _api_out_as'

def _api_responds(self, result_type='error', data=None, msg=''):

    if (data is None):
        data = {}
    return {'response': {'result': result_type, 'message': msg, 'data': data}}
