Python Remove Characters At End Of String