cythonized version of py-notify