A leftover problem from py3 conversion

Non-existing variable 'p' in p[x-1]=='\n'.