Fix python version of isinstance

isinstance function was checking the String "foo" instead of the variable foo. 
And added a check for int to match the scala example.
This isn't really what I want to demonstrate- I want to show that you can have many generators in an expression: 

```scala
for (f <- foo; b <- bar; q <- qux) foobars += (b -> f, f -> q)
```