Python Test If Variable Is Numpy A Framework