Update alternate.py

A better version :P