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