python dsm bridge