Made some preliminary changes for Python3
Made some preliminary changes for Python3

NOTE: The script is not fully compatible with Python3, and has not been
tested as such. These changes just permit the use of the -d flag on the
Mac, only for setting the state (updating the panels is not supported
yet).

adobe-photoshop/generator-panels,adobe-photoshop/generator-panels,adobe-photoshop/generator-panels