Consider naming your conditions if your if-else statement is too complex. Doing so will improve the readability of your code.
My previous tips on good Python practices.