changed tests to mainly use python instead of lua
skip tests if lua is not installed