How To Check Nested Dictionary In Python