Python Find If Variable Is String Mutable In Java