# Reversing clip frames using python

I have a directory with clips. For each of them I want:

I know how to do it manually. The output format etc. is not a problem. My question is: how do I reverse frames of bpy.types.MovieClip using python?