added option to specify port while using library in interpreter

added option to specify port while using library in interpreter incase default port 8000 is already in use