def is_pexe_file(filename):
    if os.path.islink(filename):
        return False
    with open(filename) as f:
        header = f.read(4)
    return (header == PEXE_MAGIC)
def is_pexe_file(filename):
    if os.path.islink(filename):
        return False
    with open(filename) as f:
        header = f.read(4)
    return (header == PEXE_MAGIC)