[python] Check if a string contains a number