Use six.integer_types instead of ints for param validation

On python2, this accounts for the `long` type.