Returns true if any shebang line is present in the first line of the file.

def contains_shebang(f):
    """
    Returns true if any shebang line is present in the first line of the file.
    """
    first_line = f.readline()
    if first_line in shebangs.values():
        return True
    return False