The print statement thing makes me believe it was targeted towards 2.x (older version). You most likely have 3.x (since the print statement got reformatted in 3.x and would most likely cause that issue)