OSError: [Errno 17] File exists: '/home/travis/.fireball.keys'

This is the codeblock where the directory is created ...

     key_path = os.path.expanduser("~/.fireball.keys")
     if not os.path.exists(key_path):
         os.makedirs(key_path)

Once the traceback occurs, does the directory actually exist?