Wrapper for python script