Py directive

fwiw I just moved this code and changed the variable name