python frame for testing prisoners dilemna