IDE autocompletion support: which base class to use for variables\tensors?

This is related to #6194.

I have the same problem with Pycharm.

With ipython everything works fine, autocomplete finds everything, and the python interpreter is the same.

Please let us know when this issue is fixed