updates django python print snippet