Update Gear.py for thousands bug

string "1,015" cannot be converted to float without removing the comma and sometimes the __file__ is not sensed by the interpreter.