Update calcwords.py

Variables check