Create twiddle.py

From CS373, just testing it from here.