By doing a quick search, you can find example in these posts: How to use the Python Activity in the studio beta - #8 by ovi and How do I use Invoke Python acitivities - #3 by Mateus_Cruz.
About the supported versions, the options in the Python Scope activity are 2.7, 3.3, 3.4, 3.5 and 3.6. An important detail is that they need to be 32-bits.
.