Disabled "too many branches" in pylint
Fix for P3 compatibility