Solved by Michael_Suo in post #3 
              
              
                For methods like, as in Python, the first argument to the graph is self, which represents the module object instance. The Module API takes care of adding self to the stack, see here.