headfirst python test script