def head(filename, lines=10):
    """
    Python port of the *nix head command.

    Return the frist LINES lines of the file at FILENAME
    Defaults to 10 lines.

    Arguments:
    - `filename`: str or Path
    - `lines`: int

    Return: str
    Exceptions: None
    """
    with open(str(filename)) as fh:
        return "".join(fh.readlines()[:lines])