<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def powerline():
    '''Install and set up powerline for vim, bash, tmux, and i3.

    It uses pip (python2) and the most up to date powerline version (trunk) from
    the github repository.

    More infos:
      https://github.com/powerline/powerline
      https://powerline.readthedocs.io/en/latest/installation.html
      https://github.com/powerline/fonts
      https://youtu.be/_D6RkmgShvU
      http://www.tecmint.com/powerline-adds-powerful-statuslines-and-prompts-to-vim-and-bash/
    '''
    bindings_dir, scripts_dir = install_upgrade_powerline()
    set_up_powerline_fonts()
    set_up_powerline_daemon(scripts_dir)
    powerline_for_vim(bindings_dir)
    powerline_for_bash_or_powerline_shell(bindings_dir)
    powerline_for_tmux(bindings_dir)
    powerline_for_i3(bindings_dir)
    print('\nYou may have to reboot for make changes take effect')