Helper macros for running commands through Python interpreter