Nested If Elif Else Statement In Python