Php Create Random String Python Functions