Fix build warnings by returning a copy rather than a reference to local variable as reported by gcc.
Add various Frame classes to both Java and Python wrapping