Fix get_line in py3