more checking in python