Run python test based on context.