Php Regex Replace Array In Python