You can try something like this: https://github.com/jczic/MicroWebSrv looks like the author explicitly supports pycom modules.

(Please note this isnt an official pycom recommendation. I've never used it. we dont support the library. I just found it in my travels and thought it might be usefull)

@jczic if you happen to stumble across this. Good work. Look's like a neat project!