def execline(scope, data):
    """
    Like exec(), but appends a newline to the command in data before sending
    it.

    :type  data: string
    :param data: The data that is sent.
    """
    conn = scope.get('__connection__')
    response = []
    for line in data:
        conn.execute(line)
        response += conn.response.split('\n')[1:]
    scope.define(__response__=response)
    return True