Improve po2tmx for cPO and fPO

Slight changes to code and tests to ensure that the extraction works for other
PO parsers.
PEP8: fix some tab whitespace errors
merged from up stream