How To Avoid Warnings In Python