Rewrite system check with py2

Should I clean up commit log?