Added p8 = re.sub('O','0',p7)