Add lines script for Python and C