Fixed some problems with sine.py