Using Nested If Function Python Parameters