Login to controller using vera relay servers

Hey,
I wrote a piece of python code to handle the connection to vera’s servers using the relay method,
and using https://home.getvera.com/api/users/action_login to get the relevant MMS session and cookie data.

It’s unlike existing examples I’ve seen which use the https://us-authd11.mios.com/locator/locator/locator url

I hope this will help someone else,
I’m using it to create a custom alexa skill.

The code is on github:

Let me know if you think something is wrong, or you need anything
Cheers