pulling py code