Added the option to allow define custom tooltips in python code.