test: Switch scripts to run with Python 3

For some reason, the initial commit for the switch to Python3 was truncated.  None of the scripts which followed those in the /rilmodem sub-directory were actually switched.