[Minor] Updates in python
[Minor] Updates in Lua
[Minor] Reference output in test
[Minor] Work lua's ioctl