fixed function scoping bug, updated setup.py