Clean up and DRY-ify the tmp_seq python script.
Include the _moe tmp tables.