added population script
fixed a bunch of bugs in pyanywhere pop script