Creating a drifting Gabor patch in a staircase?

I am trying to create an experiment where a Gabor patch will have a baseline ‘velocity ‘/ temp frequency of 15 deg/s and contrast but velocity and contrast will vary based on the participant response.( Forced choice staircase )
So participation will either say it’s moving faster or slower as compared to the baseline stimuli.
And based on that the contrast will decrease by 10% or increase by 2% as well as the velocity.
Ps: I’m new to psychopy I don’t know if makes sense ….