Need to invoke a python script

So, looking up batch in the help, does this sort of approach make sense:

set up a batch function (using the help instructions)
are {sourcepath} or {destpath} available as containing the directory name that was right clicked?

then a bit of dopus stuff to manipulate the directory name as per tbone

then @externalonly to switch off any interpretation of what follows as dopus commands

set folderscan=whatever the manipulated directory name is from dopus (this is the tricky one because it's the bridge between dopus and batch)
cd C:\Users\xxxx\Downloads\SonospyReleases\sonospy-current\sonospy
python scan.py -d sonospy.db "%foldertoscan%" >>scan3.log 2>&1