Prefix import with 'graypy.'

needed for python3
handler.py - add .encode; required for python3

and it seems to be available in python2 too
Merge pull request #32 from SjonHortensius/master

2 Python3 fixes