PenWatch is a project mainly written in Python, it's free.
executes actions on pendrive plugin/plugoff event