Update parts.py

fixed with pandas/python update