Inline If Statement Python String Slicing