Python Check If Dataframe Is Not Defined In Jquery