python modulo order of operations