Python coding and django test.