Adds some naive thread safety to scopes. Fixes #5
Merge branch 'master' of https://github.com/wesalvaro/pyoc