fixed regression for python check introduced in 9253a8c16d2919e4d0876aa31e1