sync py and lua