title: How to convert a Javascript object with nested functions into a Python Class?
body: <p>Trying to convert this code below into a Python class. Would I need to nest a System class within the original class? Confused on how to go about this. I want to call <code>MainClass.System.GetInstance().GetLibraryVersion()</code>, as an example</p>
  <pre><code>{
    System: {
      GetInstance: () =&gt; {
        return {
          GetLibraryVersion: () =&gt; {
            return {
              major: 0,
              minor: 0,
              type: '',
              build: ''
            }
          }
        }
      }
    }
  }
  </code></pre>