remove unused imports

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
normalize number of newlines between functions

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
remove newlines within functions

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
fix some PEP-8 parameter formatting issues

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
rewrite some loop logic for smaller nesting

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
rewrite 'not foo is None' to 'foo is not None'

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
remove unused variable

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
wrap overly long lines

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
remove unused imports

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
rewrite 'foo == False' to 'foo is False'

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
wrap overly long lines

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
remove newlines within functions

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
remove unused imports, sort remainder

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Merge pull request #13 from zyga/master

Fix most PEP-8 issues