Technical python programming test