python code to check data type