Use the libdynd_init function, avoid global static vars

This updates the python exposure to use the libdynd_init/libdynd_cleanup functions in a PR on libdynd.