Throwing Python syntax at me? Argh! :)
I'm not actually sure what's wrong here. The thing that I always recommend is to use the tool ldp.exe because it has an excellent detail-level ACL editor. You can use it to do before and after comparisons of the ACL when you make the change with the GUI and you make the change in your code to see if they result in the same ACL. From there you might be able to see what the difference is.
On the surface, I don't see what's different in your code from the sample published so hopefully the LDP trick will give you the info you need. Please post back with your results.