py --> pyc ?

doesn’t compileall.py do the job ?

python compileall.py "yourDirectoryHere"

compiles all .py under yourDirectoryHere dir, recursively.
Simply adding a context menu for directory type works very well for me.