matplotlib.pyplot.tight_layout was not available in some version of matplotlib

Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>
Fixed issue #1 and changed import positions

Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>