Java Lambda Without Return Value Python