So you mean I should create a method inside a class that mimics msfcli?  But that's like most of the code inside a method.