some cleanup to armassist sim and added some cbpy test code