python scripts from the challenge exercises for lab 4