Splitted preview and import into separate files. Pylint fixes