fixed crash in setup.py script.