title: how to get a list of built-in modules programatically
body: <p>I would like to get a list of the built-in a(and frozen) modules using micropython, running on the board (ESP32) itself.</p>
  
  <p>help('modules') will give you a list of all modules, but this is only send to the terminal. I have not been able to capture it on any other way.</p>
  
  <p>also see <a href="https://forum.micropython.org/viewtopic.php?f=2&amp;t=3298&amp;start=10" rel="nofollow noreferrer">micropython forum</a> where the only option seems to be to use dupterm 
  which unfortunately is not available on ESP32 </p>