Fix test_scalar_list.py for python3