Add python APIs: diagram.add_object, diagram.remove_object, connect_object, see plug-ins/python/pydia-diagram.c for detail.