I have tried making a switch like statement in python, instead of having a lot of if statements.
The code looks like this:
def findStuff(cds): L
Assignment in Python is a statement, and cannot be a part of expression. Also, using literal in this way evaluates everything at once, which is probably not what you want. Just use ifs, you won't gain any readability by using this.
if