contacts.Contact: Modified constructor to take a dict or a list. Fixed __str__() to print groups