To hide python try exception block