Update twocomponent.py