In my case, I had an empty embedded python method - removing it from the class helped with this error.