Fix segfault (https://github.com/cjhanks/PyUDT/issues/6)