def strip(lines):
    """ Removes comments, new lines and empty lines from the file content

    Parameters
    ----------
    lines : [str]
        file content

    Returns
    -------
    [str]
        file content without comments
    """

    lines = filter(lambda line: line[0] != "#", lines)  # commentary and empty lines
    lines = [line.split("#")[0].strip() for line in lines]  # in-line

    return lines