How To Write Mod In Python