subtests.docker_cli.top: Regexp and IndexError fix

This patch fixes the IndexError issue and corrects the
ps regexp. Additionally it fixes some pep8 fixes.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>