Removed unused functions in library.py
Fixed basic functions for relations

- Modified the indentation which was not correct
- Added some comments to precise the goal of each function
- Added in a relation the paret object if it exists
- Modified the printing of an objectc to print the list of relations
as an array