Uploading Synthetic Patient Data to a HAPI FHIR server using Synthea and Python

I created a small python script to upload patient resources from bundle json files into a fhir server. When prototyping fhir apps I have normally used public fhir servers which are widely available. Here is a good list of publicly available fhir servers. However, most of these servers reset their data periodically. They also might not be always available. I decided to deploy a local fhir server so I have more control and can experiment with writing data and persisting more complex patient examples.