Ported password to python2. Added support for 'account' being a list.