python applet that extracts even numbers from an input array