Update PyRatBox.py

modified test() to be more flexible.