Change `print ‘string’` to `print(‘string’)`
Decode byte-strings (more)

1. Plotly uses 2.7 on the backend so it will
return bytes! The json 3.x module expects native
string (unicode), so we need to convert this.

2. base64encode requires bytes, so give it bytes 
and convert after.
no more basestring! need to use six.string_types.
Python 2.6 needs numbers in ‘{}’, e.g., ‘{0}’
Tricky! Dict ordering / hash table! (more)

This test was actually dependent on what order
or what subset of the tests you were running!
Some more ‘{}’ -> ‘{0}’, etc.
Merge pull request #145 from plotly/python-version-fixes

Python version fixes