python check if int is not none