alex's code wrapper for python.