The wrong shebang #!python has to be changed to #!/usr/bin/env python3.
#!python
#!/usr/bin/env python3