Transfered scripts from another project.
solve import and pylint issues.