Python Check If Variable Has Values