def connected(perspective):
 print('got perspective1 ref:', perspective)
 print('asking it to foo(13)')
 return perspective.callRemote('foo', 13)

def connected ( perspective ) : print ( 'got perspective1 ref:' , perspective ) print ( 'asking it to foo(13)' ) return perspective . callRemote ( 'foo' , 13 )
login callback which invokes the remote "foo" method on the perspective which the server returned .