Merge pull request #2059 from DimitriPapadopoulos/lgtm

Fix LGTM recommendation: Module is imported with 'import' and 'import from'