tests: use "#!/usr/bin/env python3" to be more portable

https://bugzilla.gnome.org/show_bug.cgi?id=726911