update to Python 3.3 API, make it compatible with sublime3, fixes #4