How To Check If Variable Is String In Python