Cleanup nmap -oG output

Job ID: 34934415

Budget: $10 – $30 AUD

Hi,
I need a bash or python script to cleanup the result of nmap -oG output.
I need the output to read - Host IP, open port, open port, open port . EG, 192.168.1.1,80,443,25

The nmap output example could look similar to this
Host: 192.168.1.1 () Ports: 80/open/tcp//http///, 443/open/tcp//https///, 49152/open/tcp//unknown/// Ignored State: closed (997)
Related categories: Python Linux Bash Scripting