fix(accounts): make it work for Python 2.7