supported python3 and windows path

1)change print to print() to compatible with python3.
2)change path separator from '/' to os.sep.
3)change classpath separator from ':' to ';'.
4)decode buffer to str to compatible with python3.