@Darren we’ll you can’t write anything in Python for sure 
Anyways one practice I do have is to write any module for a larger app to have less than 500 lines. It’s not that hard but whenever I see a module that has more lines than that I reanalyze and break it into smaller more focused sub-modules