import json


def send_files(ws, filepaths):
    """send_files will format a messages to import files and send the message through websocket"""
    file_import_message = {
        'data': {
            'command': 'DEFAULT_ACTION',
            'action': 'IMPORT_CURRENT',
            'data': {
                'paths': filepaths,
                'origin': 'Maya'
            }
        }
    }
    return ws.send(json.dumps(file_import_message))