Fix for python/java list issue