REF: US #108: As a GW developer I want to port C GW part to single Python3 GW solution
DES: Needed code to run Python3 version of the GW added.
     Some minor corrections.