Hi,
I think you can call jython script with jsr223 sampler but not linked to Webdriver - Selenium.
http://stackoverflow.com/questions/24512365/jmeter-run-a-python-script-before-calling-each-http-request-samplerWebdriver Selenium use only a
Javascript engine (so not python script).
JSR223 languages supported :
Groovy, JRuby, Jython, Beanshell, browserjs,
EJS, Freemarker, Jack, Jaskell, Java, Javascript, Jawk, Jelly, JEP,
Jexl, JST, JudoScript, JUEL, OGNL, Pnuts, Scheme, Sleep, Velocity, XPath
and XSLT.
Regards.
Vincent D.