A helper for parsing Docker link environment variables (Python)