python return none if not in dict