#python loop errors