TwoStars.py modified