Using Nested If Function Python Syntax For New Line