[Refactor] Updated Rules to better python ;), overhaul on the unit test !