Fixes Lua type issues under Python 2.