Flask Run Python Script With Arguments, To change the host and port, pass them as options to the command.