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