Added modulus operations and fixed Django