implementing support of python version of powerline