Python script to decode normal base64 or custom base64