FIX: Used integer division when assigning to quanities, for Py3