python: fix bugs in test.py & test_lite.py
2 files changed