a basic and buggy python trigonometry calculator