Fixed importing Python modules, including bugs in PyObject. New tests.