Srsubs is a project mainly written in Python, it's free.
Create anki import files from video with srt subtitles
needed packages:
pysrt