added python checks with print statements