cleaned up events
made pymongo dependency optional. fixes #31