I\'m using omnifunc=pythoncomplete. When autocompleting a word (e.g., os.), I get the list of eligible class members and functions, as
omnifunc=pythoncomplete
os.
I don't know how to close it automatically, but you can type
:pclose
to close the scratch preview manually.