Remove Trailing From Python String Format