Calling the constructor outside a module works, but inside a module throws ArgumentError: ref of NULL PyObject

@stevengj Do you maybe have a clue?