Fix compatible issue with scala 2.10
Add some solutions in python