add dict functions, pydoc and reduce polling cycle