Change core.py to start counting line number and position from 0