Initial commit of cmkapi.py. Added .gitignore file.