ASC to Hex python script with multiple fonctions