I have the following code:
def myfunction(con, command, options=None):
    if options != None:
        return getattr(con, command)(options)
returnvalue = myfunction(fromcon, 'search', (None, 'all'))
I need to change it so that it does the same thing as:
returnvalue = getattr(fromcon, 'search')(None, 'all')
Help.
 
     
     
    