increase max_tries when waiting on container creation

Push up to 10 minutes won't affect systems with a
faster network connection. (Closes: LP#1370556)

Some pep8 fixes as well.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>