You can use the modules in the /lib folder to connect a pycom Gpy over both Narrowband IoT and Wifi. The connection is over a Socks5 proxy. since NB iot needs white listed servers (I have a Vodafone subscribtion..)
The work is done be Mahmoud Mansour.
All rights reserved to:
https://github.com/micropython/micropython-lib/tree/master/urequests
and: