Revert "Check for python warnings as well"

This reverts commit 2c5bab4bfc2af02d275c78a5598ab68e8187905a.