removed unwanted sleep and using field_update fn

Made following changes in OS, Media, Domain, Arch test and fn's
- Removed sleep statement and using wait_for_ajax()
- made the code pep8 friendly
- using field_update fn
- set the import statements in alphabetical order