1)
Made the code pep8 compliant by running autopep8 -ria to clean up syntax and make it python3 compliant and to get rid of all those damn tabs.

2)
fixed an issue with gcm.py in the _gcm_send to make the data a bytes string to conform to the requests module especially for POST requests.