According to the Python Documentation, it is possible to append a feature to the end of the feature file through scripting. It is also possible to get the index of a specific feature within the feature file.
Is there a possibility to insert a feature at a specific index too?