[python] How to test a variable is null in python