explicitly uses python2 and changed the print statements to look like proper functions