Getsymbols Python, Return None in case of an error.