gear.py to get gear width