Extracted startup to separate script, fixed pip dependencies