BF: Python 3 fixes for script tests

Bytes / string confusions.