While it would be fairly easy to translate these examples into Python with the right libraries ... preferring to work with ...