def METHOD_NAME(path, new_prefix):
    with open(path, 'rb+') as fh:
        original_data = fh.read()
        fh.seek(0)
        data = replace_pyzzer_entry_point_shebang(original_data, new_prefix)
        # If the before and after content is the same, skip writing
        if data != original_data:
            fh.write(data)
            fh.truncate()