updated python interface for windows