title: How do I copy from keyword to keyword in Python 2.7?
body: <p>How might I copy lines keyword by keyword in one file fileA to another file fileB in Python 2.7? The query should include the keywords in the output.</p>