test: Switch scripts to run with Python 3

Update the hashbangs.