Nested If Statment Python Example