tweaks to base python reference