Added comment, replaced some code with recommended 'isinstance' method rather than 'type == ...'
Added comment, replaced some code with recommended 'isinstance' method rather than 'type == ...'

jjonesAtMoog/tinymongo,schapman1974/tinymongo