rm app
remove unused var
fix pyflake issue and test case