Nice solution! I really like that. Good find Johannes! I would like to see the same for the pulse script. Could you file an issue for?

Only one nit here. Please mention which virtualenv has been created here.