How to reimport animation sequence with python

The ‘automated’ property set to True is causing the (false) error.
If you set it to False the import is happening as expected (but there the output log popping at the end).