Invalid indentation and invalid code. Powerline supports both 2.6 and 3.* so you must not use iteritems and must not use dict comprehension.