Control a vim instance through python code