Python Check If Variable Is Number