How To Check If A Variable Exists In Python