Run some python code in basic mode