Update core.py

Generic update