For part of the anti-plagiarism, I can’t help you. For printing a py script with syntax highlighting, the traditional tool is enscript:
enscript -E -q -Z -p - -f Courier10 readmaya.py | ps2pdf - out.pdf
enscript . postscript pdf. ps2pdf, ghostscript.
Debian Unbuntu enscript
apt-get install enscript
Debian Unbuntu ps2pdf ghostscript, , , . . :
apt-get install ghostscript