fix key error and format syntax error in fabfile