Fix usages of python's basic features.