Simplify API requests and shuffle local ports

Shuffling might speed things up if last used port is still open
Update requirements with needed dependencies