replaced tabs in core.py with spaces