> put int() around your results; it will convert a longint to an integer. What happens if the longint is too big for an int?