You may be able to do it using node, there is a script called ginsu in the repo that splits a wiki into tiddlers but I am not sure how to convert it to use python or bash.
https://github.com/Jermolene/TiddlyWiki5/blob/master/bin/ginsu.sh -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/216c309e-91e9-4e01-8fb9-ad0240cfe290%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.