Using the 'six' library to handle python3 strings properly.

Backporting the changes to the Account.add_group() method.