Merge pull request #10 from pjediny/fix-isinstance

Use isinstance() insted of type()