added unicode_literals for python 3 support, removed str type requirements in json to avoid encoding errors between python 2 and 3