Adapting ghpython to python3 in ver8

hi, is there something extra I have to do to get my old ghpython scripts to work in the new python3 component in rhino8 please.
A simple script like
import rhinoscriptsyntax as rs

if x%2 ==1:
a = 1
else:
a = 0
gives me the error…

my bad…I did not have an input for x connected…can I use this for rhino commands that don’t have a grasshopper equivalent ? eg. _MeshOutline