Fixed memory leak + setup.py