libevents: mkevent() simplified, doctest added; updated epydoc