Added to_pydate method, and added docstrings
Changed from open() to io.open
Added to_pydate method and changed to some //.