Type Change Java to Python