work around python brain damage