updates core.py to fix write to fits bug