Workaround mysterious dlopen bug on Python import