Hey Handerson,
You should read up about the
App Engine python runtime in the docs. There are certain limitations around which functionality can be used by code, and
pure-python modules are necessary. You can include third-party libraries in your uploaded app by augmenting sys.path in your
appengine_config.py. Of course, there are no such limitation in
Managed VMs, and I think you might want to look into a Managed VM approach, which will allow you to use OS-level functionality like network interfaces and process control, make full use of C libraries, indeed anything you could run on a normal Compute Engine instance.
I hope this was a helpful starting point to your further investigation.
Best wishes,
Nic