Updated Python rules according to Mike McQuaid.