Python wrapper around the Mac TIS functions to convert between chars and keycodes