def _responds(result_type, data=None, msg=''):
 return {'result': result_type_map[result_type], 'message': msg, 'data': ({} if (not data) else data)}

def _responds ( result_type , data = None , msg = '' ) : return { 'result' : result_type_map [ result_type ] , 'message' : msg , 'data' : ( { } if ( not data ) else data ) }
result is a string of given "type" message is a human readable string .