User account creation using Python

I have a Python/Flask application which creates user accounts for users across several systems using their APIs. The last application which I need to programmatically create users for is on Drupal 7. I know the API for Drupal 8 is much improved but has anyone done something similar for Drupal 7. I thought perhaps the xmlrpc library might be the way to go but perhaps someone can direct me better if their is a Drupal module or plugin that could assist here.