I've been working with the Python API for long, and tried to use the
mapclient module it has, but Google Developers did that first approach and then dropped it (I could find some links related to that if you need). I don't think there is a way you can just "insert the map". You'll have to code it yourself. You could start with
mapclient.py, but I can ensure you it's a complex task, you'll have to deal with threading, workers, etc. Maybe if you tell us where do you want to get or what do you want to do with it, we can recommend you an alternative. I made a package to use in Jupyter that uses
ipyleaflet to handle the
Map part, and uses
pygal for charts (I think it's the same you are using in your application).
You could try using Kivy, it's a great UI framework for Python that can even compile for Android and iOS. I've think on doing it, but I don't have the time to do it. It has a code input widget and a mapview