I've earlier posted about my Node based Dynamic DNS solution for DigitalOcean. Although this app is still working it will not be maintained anymore.
I have created a Python (3.x) based app that does the same as the Node based one - sans the IPv6 part. I will add that as well in the near future.
You can download or clone the repository from here.