While @Kulkul is working on a python solution, here is an alternative that may work. Code from @Einar_Raknes here: