EclecticIQ interview question

Code review for the poorly written python script