Support Python 3.

Closes #31.
Merge pull request #34 from square/jw/python3

Support Python 3.
Use OS path separator for replacements.

Closes #32.
Merge pull request #33 from square/jw/separator

Use OS path separator for replacements.