Arduino Yun and Python script

You say nothing happens - what are you expecting to happen?

If you post your sketch and your Python script, as well as a description of what you expect it to do, we can be more helpful. Otherwise, we can only talk in generalities.