Surround elpy and python config with after macro