same java warmup in python