[refactoring] Change style for PEP8 convention

all imports at new line
4 space line indentation
two blank lines before function definition