Added --json to tox.ini commands
Fixed maximum recursion error in BestPracticeWarning. Other code cleanup