fixed some python errors, changed nginx.conf to make static stuff a bit easier to use