Not to be confused with the software that most labs use, http://psychtoolbox.org/ ...
http://www.palamedestoolbox.org Is also useful in this type of research.
[Disclaimer: I'm an alum of the lab that created psychtoolbox]
My tweet from last year celebrating the first fruits of code sharing https://twitter.com/dagmarfraser/status/1060871652408475648 with response from the lead of psychopy.
MATLAB is going to have a long slow death as open source methods demanded by open science displace it. However the PTB will live on in Octave, and now psychopy.
(Note: I am the main developer of this library)