Update smartparts.py