What framework of Android can be used to connect PC to Android and Android to other PC?

view full story

http://stackoverflow.com – I have this scenario. Where i am writing one apps in Android usging bash/python. So that via PC i can connect to the Android and from Android using USB i can connect the destination PC/Server. But what API is available to send all my Android requests to USB, so that i can remotely have assistance for the Server PC via Android? Is there any other available open-source framework for doing such? (HowTos)