Python is a mess of bad design, it gives you plenty of rope to hang yourself regarding approaches to a problem. I suggest learning a language like Go, where the Python motto "There should be one-- and preferably only one --obvious way to do it" is actually true.