Added main.py and rules.py
Merge remote-tracking branch 'upstream/master'

Merge