Creates the core of a Python Library file from a long text file separated by lines.