How to start rule programming in OH3?

I made a patch for the python helper libraries to work on OH3. note the helper libraries are mainly for file based rules, not gui based.