Incorporating dup_fix patch from pylibgal3
Merge pull request #166 from crustymonkey/master

Incorporating dup_fix patch from pylibgal3