update dispatch to work with new dispatch python library