Python percent error script