Implement python3 style string formatting