Core Python benchmark code for ASV
