made check_mongodb.py pep8 compliant

- no functional changes
- made adhere to Python Styleguid except for E501
    (E501 => no lines longer than 80 characters)