Command Multiple Lines Python Code Generator