It looks like you're new here. If you want to get involved, click one of these buttons!
I would like to create a game on Pygame and copy the linescript in opensesame for collect data. I want to know what version of python I must to use (3 or 2) and what version of pygame too.
You can use either Python 2 or 3, and the version of PyGame would then be the version that's bundled with OpenSesame, which you can check by inspecting the pygame.__version__ property in the debug window.
If you're trying to run PyGame scripts in OpenSesame, it's important to be aware that OpenSesame has already created a window surface for you, so you should patch the script such that it doesn't create another one. (The details of course depend on the script.)
There's much bigger issues in the world, I know. But I first have to take care of the world I know.