restored old import and moved comment to the right file
now use if 'key' in dict.keys() in common.py:add_credentials
python3-ified the code, verified it produces the same output as original. Bumped version