call the method rlcompleter.Completer with an argument imported_objects, use the complete field of the result as an argument for the call to the method readline.set_completer.
readline . set_completer ( rlcompleter . Completer ( imported_objects ) . complete )