Python script for localhost at some directory