snm.py: initial commit