"uptick openorders some_account" reflects the original order amounts, rather than the current order amounts. In other words, when there is a partial fill the amounts do not update to reflect the amount remaining on the order.
I have looked at the code, but I am not quite knowledgeable enough to suggest the fix. Page 13 of this document may reference a related item (search for "for_sale" in that doc):
https://buildmedia.readthedocs.org/media/pdf/python-bitshares/develop/python-bitshares.pdf