Changed the shebang from #!/usr/local/bin/python to #!/usr/local/bin/python3