def get_script(script_path):
    """
    Returns script object by its path (for example for file-like object call open(script_path)).
    File preprocessing could be implemented here.
    :param script_path: path to script file
    :return: script object
    """
    with open(script_path, 'r') as script_file:
        script_lines = script_file.readlines()
    return script_lines