https://github.com/joeyajames/Python/issues/163