public static PythonObject dict(PythonObject pythonObject) {
        PythonObject dictF = attr("dict");
        PythonObject ret = dictF.call(pythonObject);
        if (ret.isNone()) {
            throw new PythonException("Cannot build dict from object: " + pythonObject.toString());