py_suppress_warnings function

Suppress Python warnings for an expression