Join with threads after cancelling in storage manager test
Fix memory leak
Added pyc to gitignore
Added python bindings to persistent queue