Python Simple Action Server Deadlock Test [2nd attempt]

@dirk-thomas I wasn't sure I could squash all the commits into a single one once the changes had been public. So I took the easy way out, and created a new branch and a new pull request...

For more info about the patch see ros/actionlib#8 (this is just a compressed version of it).