[py] generate code for setters with no parameters