How to get adjacent vertices of a vertex? (with Python)

How can I get a list of vertices that share edge with a given vertex over script? I need this to work in edit mode.

Yes, this is possible using BMEdge.other_vert

This script runs in edit-mode.

import bpy
import bmesh

obj = bpy.context.edit_object
me = obj.data
bm = bmesh.from_edit_mesh(me)

for v in bm.verts: