Led issue with arduino controled by raspberry pi/python
Your second condition is written wrongly. It should be this way:

elif pot &gt;= 450 and pot &lt;= 650:
    # do stuff


Your code should be such that only an option is chosen at any time. There should be only one 'if' condition at the top and the rest should be 'elif'.