Update handword.py

Added more error checkings in .hw file.
Made sure int parameters stay as int.
Keep angle within 0 <= a < 2Pi