The workaround is to manually exclude the "sort" method from the implementation.

Where c is an instance of pyplusplus.decl_wrappers.typedef_wrapper.typedef_t representing Container, insert the following line into your code generation script:
pygccxml.declarations.remove_declarated(c).indexing_suite.disable_method('sort')

I don't know why "indexing_suite" is not an attribute of the pyplusplus.decl_wrappers.typedef_wrapper.typedef_t class.

I found this workaround in the following post: http://boost.2283326.n4.nabble.com/Py-and-a-std-vector-of-shared-ptrs-td2700689.html