Chasing python bug