How to Turn Off Python Warnings
import os
import sys
import time
import warnings
warnings.warn("this is a test warning")
warnings.filterwarnings("ignore")
print("About to print a warning message. Expected to fail since warnings turned off.")
warnings.warn("this is another test warning")
http://www.mathematical-software.com/